package com.tedu;

import java.util.Arrays;

public class Test009 {
    public static void main (String[] args) {
        String s[] = {"红桃", "方片", "梅花", "黑桃"};

        String pokers[] = new String[54];
        int index = 0;
        for (int i = 0; i < s.length; i++) {

            for (int i1 = 1; i1 < 14; i1++) {
                pokers[index] = s[i] + i1;
                index++;
            }
        }
        pokers[53] = "大王";
        // pokers[54]="小王";//ArrayIndexOutOfBoundsException 数组 下标越界 异常
        pokers[52] = "小王";

        System.out.println(Arrays.toString(s));
        System.out.println(Arrays.toString(pokers));
    }
}
